text: Fix sticky preedit attrs
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Feb 2021 04:25:31 +0000 (23:25 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Feb 2021 04:25:31 +0000 (23:25 -0500)
commit19b9967a72508d7eccb1c7048fcedd05c4ea7adf
tree7f895a74f7f55ea643c72835a5759cd50338c04d
parentda71a379457ede018308ad0ce7605d90586a9f3b
text: Fix sticky preedit attrs

In some cases, we were inadvertedly merging the
preedit attributes into priv->attrs, instead of
keeping them separate. This was causing the underlines
to grow beyond the preedit and never go away. One
place where this was showing up is the fontchooser
preview.

Fixes: #3679
gtk/gtktext.c